package com.gdawj.javabeans;

import java.io.Serializable;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@Entity
@Access(AccessType.FIELD)
@Inheritance(strategy=InheritanceType.JOINED)
public abstract class Personne implements Serializable {

        @Id
        @GeneratedValue(strategy=GenerationType.IDENTITY)
	protected Long idPersonne;
	protected String identifiant;
	protected String motdepasse;
        protected String nom;
        protected String prenom;
        protected String email;
        @Embedded
	private Adresse adresse;

	public Personne()
	{
            // Dans le constructeur de la classe Personne
	}

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public Long getIdPersonne() {
            return idPersonne;
        }

        public void setIdPersonne(Long idPersonne) {
            this.idPersonne = idPersonne;
        }

        public String getIdentifiant() {
            return identifiant;
        }

        public void setIdentifiant(String identifiant) {
            this.identifiant = identifiant;
        }

       
        public String getMotdepasse() {
            return motdepasse;
        }

        public void setMotdepasse(String motdepasse) {
            this.motdepasse = motdepasse;
        }

        public String getNom() {
            return nom;
        }

        public void setNom(String nom) {
            this.nom = nom;
        }

        public String getPrenom() {
            return prenom;
        }

        public void setPrenom(String prenom) {
            this.prenom = prenom;
        }

        public Adresse getAdresse() {
            return adresse;
        }

        public void setAdresse(Adresse adresse) {
            this.adresse = adresse;
        }

 
}